/**
* All Rights Reserved , Copyright (C) 2021 , 青岛鼎信通讯股份有限公司
*
* MmsUserAccessInfoService
* 用户访问信息表新
*
* 修改纪录
* 2021-06-16 版本：1.0 hudeyong 创建。
* @version 版本：1.0
* @author 作者：hudeyong
* 创建日期：2021-06-16
*/
package com.topscomm.mms.service.impl;

import com.topscomm.basic.BasicEntity;
import com.topscomm.basic.exception.ServiceException;
import com.topscomm.mms.pojo.MmsDeptExtraInfoEntity;
import com.topscomm.mms.pojo.MmsUserAccessInfoEntity;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;

import com.topscomm.mms.service.IMmsUserAccessInfoService;
import com.topscomm.mms.service.impl.auto.MmsUserAccessInfoServiceAuto;

import java.util.Map;

@Service(value = "mmsUserAccessInfoService")
@Scope(value = "singleton")
public class MmsUserAccessInfoService extends MmsUserAccessInfoServiceAuto implements IMmsUserAccessInfoService {
    @Override
    protected void updateAfter(Map<String, Object> map) throws ServiceException {
        super.updateAfter(map);
        this.addValueToRedis(MmsUserAccessInfoEntity.tableName);
    }

    @Override
    protected void afterInsert(BasicEntity entity) throws ServiceException {
        super.afterInsert(entity);
        this.addValueToRedis(MmsDeptExtraInfoEntity.tableName);
    }

    @Override
    protected void deleteAfter(String whereSql) {
        super.deleteAfter(whereSql);
        this.addValueToRedis(MmsDeptExtraInfoEntity.tableName);
    }
}
